Skip to content

Conversation

@achaljhawar
Copy link

Parameterized ToolCallback() and CallToolResult() types to enable type-safe structured tool outputs.

Motivation and Context

fixes #563

How Has This Been Tested?

  • All existing tests pass
  • Type checking validates that structuredContent now properly infers types from outputSchema

Breaking Changes

None

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

…` to enable type-safe structured tool outputs.
@achaljhawar achaljhawar requested a review from a team as a code owner November 25, 2025 14:08
@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 25, 2025

Open in StackBlitz

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/sdk@1165

commit: da45dd5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invalid JSON RPC requests do not respond with an error

1 participant